package com.sky.Screen;

import java.util.ArrayList;
import java.util.List;

import com.healthcare.widget.ActionBar;
import com.healthcare.widget.ActionBar.IntentAction;
import com.sky.Model.Item;
import com.sky.Model.LocationItem;
import com.sky.Model.serviceItem;
import com.sky.adapter.CustomGridViewAdapter;
import com.sky.adapter.ServicesAdapter;
import com.sky.adapter.listLocationAdapter;
import com.sky.heathcare.R;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.Spinner;

public class ScheduleActivity extends Activity {

	Spinner servicesCb;
	List<String> list = new ArrayList<String>();

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.schedule_activity);
		
		final ActionBar actionBar = (ActionBar) findViewById(R.id.actionbar);       
        actionBar.setTitle("Home");

        actionBar.setHomeAction(new IntentAction(this, MainActivity.createIntent(this), R.drawable.ic_title_home_default));
        actionBar.setDisplayHomeAsUpEnabled(true);
       
        
		initData();

		servicesCb = (Spinner) findViewById(R.id.services_cb);
		
		ArrayAdapter<String> dataAdapter = new ArrayAdapter<String>(this,
				android.R.layout.simple_spinner_item, list);
			dataAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
						
			servicesCb.setAdapter(dataAdapter);
	}

	private void initData() {		

		list.add("Khám và tư vấn phụ khoa");
		list.add("Khám thai");
		list.add("Đặt vòng");
		list.add("Lấy vòngLấy vòng");
		list.add("Nội soi cổ tử cung");
		list.add("Phết  TB cổ tử cung");
		list.add("May tầng sinh môn");
		list.add("Cắt nhú da");
		
				

	}
}
